import React from "react";
import { GetStaticPaths, GetStaticPropsResult } from "next";
type SSGPageProps = {
date: string;
};
export default function RevalidatedSSGPage(props: SSGPageProps): JSX.Element {
return (
);
}
export function getStaticPaths() {
const paths = [{ params: { title: "with space" } }];
return { paths, fallback: true };
}
export function getStaticProps(): GetStaticPropsResult {
return {
revalidate: 10,
props: {
date: new Date().toJSON()
}
};
}